package com.aytbayev.resmi;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;

public class GeneralHelper {

	public static void showAlert(Context context, String msg){
		AlertDialog.Builder builder = new AlertDialog.Builder(context);
    	builder.setMessage(msg)
    	       .setCancelable(true)
               .setPositiveButton("OK", new DialogInterface.OnClickListener() {
                    public void onClick(DialogInterface dialog, int id) {
                         dialog.cancel();
                    }
                });
    	AlertDialog alert = builder.create();
    	alert.show();
	}
}
